import requests


web_url = 'http://angelimg.spbeen.com'
image_url = 'http://image.angelimg.spbeen.com/00000mx00000/RaSCP5lDMRXSwKUsVh9E282861/mS098rH0H3ASvJtfBASo282861-nlpi2u.jpg'
json_url = 'http://ncovdata.spbeen.com/apis/get_china_provinces/?query_date=2020-01-31'
headers = {
    'User-Agent': 'xxxxx',
    'Referer': web_url, # 图片的防盗链设置，使用了Referer字段
}
response = requests.get(url=json_url, headers=headers)  # get请求网页 post提交数据

print(1, response.status_code)
print(2, response.headers)
print(3, response.request.headers)
print(4, response.content)
print(5, type(response.text), response.text)
print(6, type(response.json()), response.json())
